package org.example.config;

import org.springframework.context.annotation.*;
//定义配置类
@Configuration
//启用包扫描
@ComponentScan("org.example")
//引入文件目录下的jdbc.properties文件来在jdbcconfig中读取
@PropertySource("jdbc.properties")
//加载mybatisconfig和jdbcconfig类配置
@Import({mybatisconfig.class, jdbcconfig.class})
//开启事务
@EnableAspectJAutoProxy
public class springconfig {
}
